<%@ include file="/WEB-INF/views/public/include.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<!-- 页面编码 -->
	<meta charset="utf-8">
	<!-- 设置IE内核优先为Edge -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<!-- 设置360浏览器渲染引擎为webkit -->
  	<meta name="renderer" content="webkit">
	<title>约见管理中心</title>
	<link rel="stylesheet" href="/resources/admin/static/css/bootstrap.css">
	<link rel="stylesheet" href="/resources/admin/static/css/public.css">
	<!-- 基本脚本载入 -->
	<script src="//cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
	<script src="/resources/admin/static/js/bootstrap.min.js"></script>
	<script src="/resources/admin/static/js/tinymce/tinymce.min.js"></script>
</head>
<body>
	<header class="navbar navbar-default">
		<div class="container">
			<div class="navbar-header">
				<a href="/" class="navbar-brand">约见管理中心</a>
			</div>
			<!-- END .navbar-header -->
			<div class="navbar-collapse collapse">
				<ul class="nav navbar-nav navbar-right">
					<li><a href="#">大番茄</a></li>
				</ul>
				<!-- END .nav -->
			</div>
			<!-- END .navbar-collapse -->
		</div>
		<!-- END .container -->
	</header>
	<!-- END .navbar -->
	<div id="content" class="site-content">
		<div class="container">
			<div class="row">
				<div class="col-lg-2 col-md-2 col-sm-2">
					<%@ include file="/WEB-INF/views/admin/public/menu.jsp"%>
					<!-- END .list-group -->
				</div>
				<!-- END .col-md-3 -->
				<div class="col-lg-10 col-md-10 col-sm-10">
					<form:form commandName="subject" action="./edit.do?subjectId=${subject.id}" class="form-horizontal">
						<div class="form-group">
							<label class="col-sm-2 control-label">话题所属牛人</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" value="${subject.user.getName()}" readonly required>
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">话题标题</label>
							<div class="col-sm-10">
								<form:input path="title" type="text" class="form-control" value="" required="true" />
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">话题类型</label>
							<div class="col-sm-10">
								<form:radiobuttons path="type" items="${typeMap}"></form:radiobuttons>
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">话题介绍</label>
							<div class="col-sm-10">
								<form:textarea path="content" id="introduction" class="form-control" rows="6" placeholder="至少20字" minlength="20"></form:textarea>
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">价格</label>
							<div class="col-sm-10">
								<div class="input-group">
									<form:input path="price" type="text" class="form-control" placeholder="0" required="truue" />
	      							<div class="input-group-addon">元/次</div>
								</div>
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="col-sm-2 control-label">见面时长</label>
							<div class="col-sm-10 form-inline">
								<form:radiobuttons path="duration" items="${durationMap}"></form:radiobuttons>
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
						<hr>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<button type="submit" class="btn btn-primary">更新</button>
								<!--<button type="submit" class="btn btn-success">通过审核</button>
								<button type="submit" class="btn btn-danger">拒绝</button>-->
							</div>
							<!-- END .col-sm-10 -->
						</div>
						<!-- END .form-group -->
					</form:form>
					<!-- END .form-horizontal -->
				</div>
				<!-- END .col-md-9 -->
			</div>
			<!-- END .row -->
		</div>
		<!-- END .container -->
	</div>
	<!-- END #content -->
	<script src="/resources/admin/static/js/main.js"></script>
</body>
</html>